﻿
@model Stamp_For_Africa_Version_2.Models.Artist

@{
    ViewBag.Title = "ArtistDetails";
}

<script type="text/javascript">
	$(function () {
		$("#toolbox").tabs({

		});
	});
</script>


<h2>@Model.DisplayName</h2>

@* Toolbox *@
<div id="toolbox"  class="roundedpanel">

	@* TAB HEADINGS *@

  <ul>
  @{
		<li>
		<a href="#Overview">Overview</a>
		</li>
		<li>
		<a href="#Info">Background</a>
		</li>		    


	}    
  </ul>

  <div id="Overview">
    @if (Model.HasImage)
    {
      <img src="../../Content/images/default_user_300x300.png" />
    }
    else
    {
      <img alt ="" src='@Url.Action("ShowArtist", "Artists", new { Model.Id })' width="100" height="auto"/>
    }
   </div> 
   <div id="Info">
    @Html.TextAreaFor(m => m.Writeup, new {style="width:600px;height:500px"})
   </div>
 </div>

<p>
@if (User.IsInRole("Administrators"))
{
  @Html.ActionLink("Edit", "Edit", new { id = Model.Id })
}
 @Html.ActionLink("Back to List", "Index")
</p>
